<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui">

<ui:composition template="/templates/tmpl_no_login.xhtml">
	<ui:define name="centro">
		<center>
			<form id="login" method="post" action="#{request.contextPath}/j_spring_security_check">
				<p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />

				<br /> <br />

				<p:panelGrid columns="2">
					<f:facet name="header">
						<p:outputLabel value="Digite o login e senha" />
					</f:facet>

					<p:outputLabel for="j_username" value="E-mail:" />
					<p:inputText id="j_username" required="true" />

					<p:outputLabel for="j_password" value="Senha:" />
					<p:password id="j_password" required="true" />

					<f:facet name="footer">
						<h:panelGroup style="display:block; text-align:center">
							<h:commandButton value="Entrar" />
						</h:panelGroup>
					</f:facet>
				</p:panelGrid>


			</form>
		</center>

	</ui:define>
</ui:composition>

</html>
